package com.xquant.databasemanagement;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

public class MyApp extends Application {
    public void start(Stage primaryStage) throws Exception {
        try {

            // 这里的root从FXML文件中加载进行初始化，这里FXMLLoader类用于加载FXML文件
            Parent root = FXMLLoader.load(getClass().getResource("/mainPanel/MainPanel.fxml"));
            Scene scene = new Scene(root, 700, 400);
            primaryStage.setScene(scene);
            primaryStage.setTitle("数据库管理工具");
            primaryStage.show();
        } catch(Exception e) {
            e.printStackTrace();
        }

    }

    public static void main(String[] args) {
        launch(args);

    }
}
